import Header from "./common/header";
import "./asstes/iconfont/iconfont.css";
import { BrowserRouter,Route,Link } from "react-router-dom";
import { Provider } from "react-redux";
import Home from "./pages/home"
import Detail from "./pages/detail"
import store from "./store";
function App() {
  return (
    <Provider store={store}>
      <div className="App">
        <Header></Header>
        <BrowserRouter>
        <Link rel="stylesheet" to="/">首页</Link>
        {/* <Link rel="stylesheet" to="/detail/1">详情</Link> */}
        <Link rel="stylesheet" to="/detail?id=2">详情</Link>
          <div>
            <Route path="/" exact component={Home}></Route>
            {/* <Route path="/detail/:id" exact component={Detail}></Route> */}
            <Route path="/detail" exact component={Detail}></Route>
          </div>
        </BrowserRouter>
      </div>
    </Provider>
  );
}

export default App;
